package com.xth8013.config;

import org.ho.yaml.Yaml;
import sun.security.jca.GetInstance;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Properties;

/**
 * description:
 *
 * @author tianhua.xie（tianhua.xie@ucarinc.com）
 * @version 1.0
 * @date 2018/8/20 8:27
 */
public class ConfigV2 {

    private String userName;
    private String date;
    private String fromStation;
    private String toStation;
    private String purposeCodes;
    private List<String> stationTrainCodeList;
    private boolean needEd;
    private boolean needYd;
    private boolean needYz;


    @Override
    public String toString(){
        StringBuffer sb = new StringBuffer();
        sb.append("用户：").append(userName).append(" ,")
                .append("日期：").append(date).append(" ,")
                .append("出发点：").append(fromStation).append(" ,")
                .append("目的地：").append(toStation).append(" ,")
                .append("乘客类别：").append(purposeCodes).append(" ,")
                .append("车次列表：").append(stationTrainCodeList).append(" ,")
                .append("一等座：").append(needYd).append(" ,")
                .append("二等座：").append(needEd).append(" ,")
                .append("无座：").append(needYz);
        return sb.toString();
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getFromStation() {
        return fromStation;
    }

    public void setFromStation(String fromStation) {
        this.fromStation = fromStation;
    }

    public String getToStation() {
        return toStation;
    }

    public void setToStation(String toStation) {
        this.toStation = toStation;
    }

    public String getPurposeCodes() {
        return purposeCodes;
    }

    public void setPurposeCodes(String purposeCodes) {
        this.purposeCodes = purposeCodes;
    }

    public List<String> getStationTrainCodeList() {
        return stationTrainCodeList;
    }

    public void setStationTrainCodeList(List<String> stationTrainCodeList) {
        this.stationTrainCodeList = stationTrainCodeList;
    }

    public boolean isNeedEd() {
        return needEd;
    }

    public void setNeedEd(boolean needEd) {
        this.needEd = needEd;
    }

    public boolean isNeedYd() {
        return needYd;
    }

    public void setNeedYd(boolean needYd) {
        this.needYd = needYd;
    }

    public boolean isNeedYz() {
        return needYz;
    }

    public void setNeedYz(boolean needYz) {
        this.needYz = needYz;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
